<template>
  <el-dialog
    :close-on-click-modal='false'
    :visible.sync='visible'
    title='上传文件'
    @close='closeHandle'
  >
    <multi-upload v-model='url' />
  </el-dialog>
</template>

<script>
import MultiUpload from '@/components/Upload/MultiUpload'

export default {
  components: { MultiUpload },
  data() {
    return {
      visible: false,
      url: '',
      num: 0,
      successNum: 0,
      fileList: []
    }
  },
  methods: {
    init() {
      this.visible = true
    },
    // 弹窗关闭时
    closeHandle() {
      this.fileList = []
      this.$emit('refreshDataList')
    }
  }
}
</script>
